import request from '@/utils/request'



// 变更 设备 状态
export function changeAssetStatus(data) {
  return request({
    url: '/base/Asset/changeAssetStatus',
    method: 'post',
    data: data
  })
}



// 新增设备
export function addAsset(data) {
  return request({
    url: '/base/Asset',
    method: 'post',
    data: data
  })
}

// 修改设备
export function updateAsset(data) {
  return request({
    url: '/base/Asset',
    method: 'put',
    data: data
  })
}

// 删除设备
export function delAsset(assetId) {
  return request({
    url: '/base/Asset/' + assetId,
    method: 'delete'
  })
}

// 导出设备
export function exportAsset(query) {
  return request({
    url: '/base/Asset/export',
    method: 'get',
    params: query
  })
}